import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'; //引入elementui的js
import 'element-ui/lib/theme-chalk/index.css'; //引入css
import axios from 'axios' //在vue中引入axios的js



axios.defaults.withCredentials=true
axios.defaults.baseURL = 'http://localhost:8080/' //配置请求的基础路径
Vue.prototype.$axios = axios //发请求时使用this.$axios
Vue.use(ElementUI); //在vue中可以使用
Vue.config.productionTip = false

new Vue({
  router,
  render: function (h) { return h(App) }
}).$mount('#app')
